import { getToken, request } from '@inbiz/utils';

const token = getToken();

export async function getDraftPermission(params: any) {
  return request(`/edoc2Flow-web/edoc-task/getIsDrafts?orgToken=${token}`, {
    method: 'get',
    params,
    headers: {
      vVersion: 'v6',
    },
  });
}

// 撤回权限
export async function getWithdrawPermission(params?: any) {
  return request(`/edoc2Flow-web/process/operation/getIsWithdraw`, {
    params,
    headers: {
      vVersion: 'v6',
    },
  });
}

// 是否催办
export async function getIsUrge(params?: any) {
  return request(`/edoc2Flow-web/process/operation/getIsUrge`, {
    params,
    headers: {
      vVersion: 'v6',
    },
  });
}
